//
//  WBPictureCell.swift
//  SinaWeibo
//
//  Created by 风不会停息 on 2016/11/18.
//  Copyright © 2016年 风不会停息. All rights reserved.
//

import UIKit

class WBPictureCell: UICollectionViewCell {

    @IBOutlet weak var imageView: UIImageView!
    
    var pictureInfo:WBPictureInfo? {
    
    
    didSet{
    let url = URL(string: pictureInfo?.thumbnail_pic ?? "")
    imageView.sd_setImage(with: url)
    }
    
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        self.backgroundColor = randomColor()
        // Initialization code
    }
  

}
